package kz.simplex.photobox.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class FriendshipPK implements Serializable {
	private Integer user1;
	private Integer user2;

	public FriendshipPK() {
		super();
	}
	public FriendshipPK(Integer user1, Integer user2) {
		super();
		this.user1 = user1;
		this.user2 = user2;
	}

	@Column(name = "user1", nullable = false)
	public Integer getUser1() {
		return user1;
	}
	public void setUser1(Integer user1) {
		this.user1 = user1;
	}
	
	@Column(name = "user2", nullable = false)
	public Integer getUser2() {
		return user2;
	}
	public void setUser2(Integer user2) {
		this.user2 = user2;
	}

}
